package com.yjx.gulimall.product.feign;

import com.yjx.gulimall.common.to.SkuReductionTO;
import com.yjx.gulimall.common.to.SpuBoundTO;
import com.yjx.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zhuyingcoder
 * @version 1.0
 * @date 2022-03-28 13:42
 */
@FeignClient(value = "gulimall-coupon")
public interface CouponFeginService {

    /**
     * 保存 积分信息
     * @param spuBoundTo
     */
    @PostMapping("/coupon/spubounds/saveBounds")
    R saveBounds(@RequestBody SpuBoundTO spuBoundTo);

    /**
     * 保存 满减信息
     */
    @PostMapping("/coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTO reductionTo);

}
